package com.bac.rentmap.autocomplete;

import java.util.List;

/**
 * Used to autocomplete user input. Provides suggestions to be selected by user
 * to save him from boring typing.
 *
 * @author Andrew Osipenko
 */
public interface AddressAutocomleter {
    /**
    * Autocomplete user input.
    *
    * @param city
    *            required
    * @param userInput
    *            required, not empty string
    * @return not null list of not empty strings
    */
    List<String> autocomplete(String city, String userInput);
}
